package com.xbtop.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class AdminController {

	//@GetMapping("/main.html")
	//public String main(){
	//	return "main";
	//}

	/**
	 * 跳转到登录页
	 * @return
	 */
	@GetMapping("/toLogin")
	public String toLogin(){
		return "login";
	}

	@GetMapping("/main")
	public String toMain(){
		return "main";
	}

	@GetMapping("/unauth")
	public String unauth(){
		return "unauth";
	}

}
